package com.huahang.fashionpress.exception;

import com.huahang.fashionpress.enums.ExceptionEnum;

/**
 * 移除商品时的异常
 * @author : 王翰聪
 * @since : 2019/08/25
 * @version : 1.0
 */
public class CartException extends ResultException {
    public CartException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum);
        this.setCode(exceptionEnum.getCode());
    }

    public CartException(Integer code, String message) {
        super(code, message);
        this.setCode(code);
    }
}
